import { Controller, Get } from "@nestjs/common";
import { menuService } from "./menu.service";
import { WebURLConstants } from "src/WebURLConstant";

@Controller(WebURLConstants.MENU)
export class MenuController {

  constructor(
    private menuService: menuService
  ) { }

  /**
   * 查询所有目录
   * @returns 目录扁平数组
   */
  @Get(WebURLConstants.GET_CATALOGUE)
  getCatalogue() {
    return this.menuService.getCatalogue()
  }
}